package org.zhxy.zhxy.utils;

public class RandomUtils {

    public static String getRanDomCode(){
        StringBuffer buffer = new StringBuffer(4);
        for (int i=0;i<4;i++){
            int random = (int)(Math.random()*10);
            buffer.append(random);
        }
        return buffer.toString();
    }
}
